
<div class="tab-pane" id="otherset">

	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">其它设置</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">链接黑名单</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="blacklist"  value="{$theme['blacklist']}">
					<span class="help-block">在黑名单的微信，将无法打开活动链接。比如我们的同行，只要微信昵称中包上述关键字，将会跳转到百度页面</span>
					<span class="help-block">用“|”分格每一个关键字，例如：百度|腾讯|13512341234|幸福来敲门</span>
					<span class="help-block">如想恢复可在某一个用户，可点粉丝->黑名单-开启，即可恢复</span>
				</div>
				{if $_G['isSuperAdmin']}
					<div class="col-sm-2 col-xs-12">
						<a href="#" onclick="drop_confirm('确定要删除此活动吗?','{php echo createWebUrl($do,array('op'=>'deletenew','id'=>$theme['id']));}');"
						   title="删除" class="btn btn-danger col-lg-12" ><i class="fa fa-times"> 删除此活动</i></a>
					</div>
				{/if}
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">IP白名单</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="whiteiplist"  value="{$config['whiteiplist']}">
					<span class="help-block">若用户出现在后台【粉丝】不在活动地区中，100%确认客户无问题，可将其IP添加至此，否则无法付款</span>
					<span class="help-block">操作方法：粉丝->不在活动地区-开启，即可恢复</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">定单核销</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="ishexiao" value="0" {if $config['ishexiao']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="ishexiao" value="1" {if $config['ishexiao']==1} checked="checked"{/if} type="radio"> 开启
					</label>
					<span class="help-block">核销方法:客户点击底部团购号,出现二维码,员工扫一下即可核销</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">多选分类限购</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="form_five_qty" value="0" {if $config['form_five_qty']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="form_five_qty" value="1" {if $config['form_five_qty']==1} checked="checked"{/if} type="radio"> 开启
					</label>
					<span class="help-block">启用多选分类限购后，选项限购用尽将不可选择，所有选项都用尽，用户无法下单</span>
				</div>
			</div>
<!--			异业模式开关控制是否绑定商家-->
			{if $system['is_multiple_merchants'] && $config['form_five_qty']==1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">异业多选分类限购绑定商家</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="form_five_qty_bind_shangjia" value="0" {if $config['form_five_qty_bind_shangjia']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="form_five_qty_bind_shangjia" value="1" {if $config['form_five_qty_bind_shangjia']==1} checked="checked"{/if} type="radio"> 开启
					</label>
					<span class="help-block">默认【关闭】异业多选分类绑定商家</span>
				</div>
			</div>
			{/if}
<!--			异业模式开关控制是否绑定商家-->
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">礼品核销</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					{if $system['mulit_products']!=1}
					<label class="radio-inline">
						<input name="isgifthexiao" value="0" {if $config['isgifthexiao']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="isgifthexiao" value="1" {if $config['isgifthexiao']==1} checked="checked"{/if} type="radio"> 开启
					</label>
					{else}
					<span class="help-block" style="color: red;">多产品核销功能开启后，此功能失效</span>
					{/if}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">核销别名</label>
				<div class="col-sm-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">定单核销别名：</span>
						<input class="form-control" type="text" value="{if empty($config['hexiaoname'])}定单核销{else}{$config['hexiaoname']}{/if}" class="span2" name="hexiaoname">
						<span class="input-group-addon">礼品核销别名：</span>
						<input class="form-control" type="text" value="{if empty($config['gifthexiaoname'])}礼品核销{else}{$config['gifthexiaoname']}{/if}" class="span2" name="gifthexiaoname">
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">多选保存</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="isduoxuan" value="0" {if $config['isduoxuan']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="isduoxuan" value="1" {if $config['isduoxuan']==1} checked="checked"{/if} type="radio"> 开启
					</label>
					<span class="help-block">多选保存:多选直接保存到后台，不需填写信息</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">多选保存提示</label>
				<div class="col-sm-8 col-xs-12">
					<input class="form-control" type="text" value="{$config['duoxuantips']}" class="span2" name="duoxuantips">
					<span class="help-block" >如：您将此小程序分享给5个好友点亮5颗星星，即可免费获得价值298元的儿童摄影套餐！</span>
				</div>
			</div>
			{if $system['is_multiple_merchants'] }
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">首页商家排序</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="homeshowshop" value="0" {if $config['homeshowshop']==0} checked="checked"{/if} type="radio"> 谁转发谁在前+后台设置排名
					</label>
					<label class="radio-inline">
						<input name="homeshowshop" value="1" {if $config['homeshowshop']==1} checked="checked"{/if} type="radio"> 谁转发谁在前+销售量排名
					</label>
					<label class="radio-inline">
						<input name="homeshowshop" value="2" {if $config['homeshowshop']==2} checked="checked"{/if} type="radio"> 只显示员工归属商家的信息
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">显示所有链接数据</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="showalldata" value="0" {if $config['showalldata']==0} checked="checked"{/if} type="radio"> 不显示
					</label>
					<label class="radio-inline">
						<input name="showalldata" value="1" {if $config['showalldata']==1} checked="checked"{/if} type="radio"> 显示
					</label>
					<span class="help-block">在链接以及大屏上，显示所有链接数据，即将所有链接的报名数，浏览量叠加到此链接的前台显示</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">活动主商家</label>
				<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
					<select class="form-control" name="showshop">
						<option value="0">所有商家，且所有商家均可管理</option>
						{loop $shoplist $row}
						<option value="{$row['id']}" {if $config['showshop'] == $row['id'] }selected="selected"{/if}>{$row['name']}</option>
						{/loop}
					</select>
					<span class="help-block">选中其中一个商家后，此链接其它商家只有核销权限，无投屏无员工管理等权限</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">我也加入联盟</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_image('joinshopimg',$config['joinshopimg']);}
					<span class="help-block">商家可以报名，信息在后台商家，商家报名信息中查看<a style="color: #000000" href="https://css2020.yixuan.net/2020css/yx2020/images/joinshop.psd" target="_blank">点击下载模版</a></span>
				</div>
			</div>
			{/if}
			{if $system['softstyle']==104}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">多商家异业联盟首页</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="duoshangjiashouye" value="0" {if $config['duoshangjiashouye']==0} checked="checked"{/if} type="radio"> LOGO+首图
					</label>
					<label class="radio-inline">
						<input name="duoshangjiashouye" value="1" {if $config['duoshangjiashouye']==1} checked="checked"{/if} type="radio"> 首图
					</label>
				</div>
			</div>

			<div class="form-group" >
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">多商家异业首页尺寸</label>
				<div class="col-md-5">
					<div class="input-group">
						<span class="input-group-addon">高度</span>
						<input type="text" class="form-control" value="{if empty($config['duoshangjiaheigh'])}260{else}{$config['duoshangjiaheigh']}{/if}" name="duoshangjiaheigh">
						<span class="input-group-addon">像素</span>
					</div>
				</div>
			</div>
			{/if}

		</div>
	</div>
	{if !empty($config['formtwo']) && ($config['formtwotype'] == 2 || $config['formtwotype'] == 3) && !empty($config['formtwooptions'])}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">新老生限制</div>
		<div class="panel-body" style="">

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">资料库</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">资料库内的手机为</span>
						<select class="form-control" name="only_stu_data">
							<option value="" {if $config['only_stu_data']==''}selected="selected"{/if}>禁用</option>
							{loop $formtwooptions $index $row}
							<option value="{$row['val']}" {if $config['only_stu_data']==$row['val']}selected="selected"{/if}>{$row['show']}</option>
							{/loop}
						</select>
						{if !empty($config['only_stu_data'])}
						<span class="input-group-addon">限制模式</span>
						<select class="form-control" name="only_stu_data_mode">
							<option value="0" {if $config['only_stu_data_mode']!=0}selected="selected"{/if}>客户选择或手机号在库内</option>
							<option value="1" {if $config['only_stu_data_mode']==1}selected="selected"{/if}>仅限在库里的是{$config['only_stu_data']}</option>
						</select>
						<span class="input-group-addon" > 共有 <span id="stu_total">{php echo \app\model\Theme::get_stu_data_total($id);}</span> 个{$config['only_stu_data']}</span>
						<span class="input-group-addon" id="addStu" style="background-color: #428bca;border-color: #357ebd;color: #ffffff;">批量加密上传</span>
						<span class="input-group-addon" id="delStu"  style="background-color: #ca4242;border-color: #d43f3a;color: #ffffff;"> 清空</span>
						{/if}
					</div>
					<span class="help-block">客户选择或手机号在库内：例如资料库内的手机号为老生，客户下单输入手机号选择了新生，若客户的手机号在此资料库内依旧判断为老生</span>
					<span class="help-block">仅限库里的老生：例如只能老生开团，客户选了老生，但他的手机号码不在资料库里，也无法开团</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">一个团限一名</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">不重复选项</span>
						<select class="form-control" name="only_old_stu">
							<option value="" {if $config['only_old_stu']==''}selected="selected"{/if}>禁用</option>
							{loop $formtwooptions $index $row}
							<option value="{$row['val']}" {if $config['only_old_stu']==$row['val']}selected="selected"{/if}>{$row['show']}</option>
							{/loop}
						</select>
						<span class="input-group-addon"> 失败提示</span>
						<input type="text" class="form-control" value="{php echo empty($config['only_old_stu_tips'])?'此团只限一个#name，请另开新团':$config['only_old_stu_tips'];}" name="only_old_stu_tips">
					</div>
					<span class="help-block">仅支持【③文本/多选】的下拉菜单，用于同一个团，只允许一个老生；#name为限制的重复项名称，如：老生</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">限谁开团</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">仅限谁开团</span>
						<select class="form-control" name="only_stu_tour_leader">
							<option value="" {if $config['only_stu_tour_leader']==''}selected="selected"{/if}>禁用</option>
							{loop $formtwooptions $index $row}
							<option value="{$row['val']}" {if $config['only_stu_tour_leader']==$row['val']}selected="selected"{/if}>{$row['show']}</option>
							{/loop}
						</select>
						<span class="input-group-addon"> 失败提示</span>
						<input type="text" class="form-control" value="{php echo empty($config['only_stu_tour_leader_tips'])?'此活动只限#name开新团':$config['only_stu_tour_leader_tips'];}" name="only_stu_tour_leader_tips">
					</div>
					<span class="help-block">仅支持【③文本/多选】的下拉菜单，用于同一个团，只允许老生开新团；#name为限制的重复项名称，如：老生</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">限谁参团</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">仅限谁参团</span>
						<select class="form-control" name="only_stu_league_member">
							<option value="" {if $config['only_stu_league_member']==''}selected="selected"{/if}>禁用</option>
							{loop $formtwooptions $index $row}
							<option value="{$row['val']}" {if $config['only_stu_league_member']==$row['val']}selected="selected"{/if}>{$row['show']}</option>
							{/loop}
						</select>
						<span class="input-group-addon"> 失败提示</span>
						<input type="text" class="form-control" value="{php echo empty($config['only_stu_league_member_tips'])?'此活动只限#name参团':$config['only_stu_league_member_tips'];}" name="only_stu_league_member_tips">
					</div>
					<span class="help-block">仅支持【③文本/多选】的下拉菜单，用于同一个团，只允许老生开新团不可加入团；#name为限制的重复项名称，如：老生</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">谁不能报名</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">不能报名</span>
						<select class="form-control" name="only_stu_sign_up">
							<option value="" {if $config['only_stu_sign_up']==''}selected="selected"{/if}>禁用</option>
							{loop $formtwooptions $index $row}
							<option value="{$row['val']}" {if $config['only_stu_sign_up']==$row['val']}selected="selected"{/if}>{$row['show']}</option>
							{/loop}
						</select>
						<span class="input-group-addon"> 失败提示</span>
						<input type="text" class="form-control" value="{php echo empty($config['only_stu_sign_up_tips'])?'此活动#name不可报名':$config['only_stu_sign_up_tips'];}" name="only_stu_sign_up_tips">
					</div>
					<span class="help-block">仅支持【③文本/多选】的下拉菜单，只允许老生开新团不可加报名；#name为限制的名称，如：老生</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">时间限制</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">模式</span>
						<select class="form-control" name="stu_time_mode">
							<option value="0" {if $config['stu_time_mode'] == 0 }selected="selected"{/if}>不限制</option>
							<option value="1" {if $config['stu_time_mode'] == 1 }selected="selected"{/if}>限制哪天之前有效</option>
						</select>
						{if $config['stu_time_mode'] == 1 }
						<span class="input-group-addon">有效期至</span>
						{php $config['stu_limit_time'] = empty($config['stu_limit_time'])?$theme['endtime']:$config['stu_limit_time'];}
						{php echo view_form_field_date('stu_limit_time', date('Y-m-d H:i:s',$config['stu_limit_time']), true);}
						{/if}
					</div>
				</div>
			</div>
			{if $system['fenxiao01'] >0}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">介绍谁无红包</label>
				<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">介绍</span>
						<select class="form-control" name="only_stu_comm">
							<option value="" {if $config['only_stu_comm']==''}selected="selected"{/if}>禁用</option>
							{loop $formtwooptions $index $row}
							<option value="{$row['val']}" {if $config['only_stu_comm']==$row['val']}selected="selected"{/if}>{$row['show']}</option>
							{/loop}
						</select>
						<span class="input-group-addon">没有分销红包,无时间限制</span>
					</div>
					<span class="help-block">仅支持【③文本/多选】的下拉菜单，介绍老生无分销红包，员工、代理提成一样有</span>
				</div>
			</div>
			{/if}
			{if $config['isrecent']>0}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">附近团显示</label>
				<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">团长是</span>
						<select class="form-control" name="recent_only_old">
							<option value="" {if $config['recent_only_old']==''}selected="selected"{/if}>所有</option>
							{loop $formtwooptions $index $row}
							<option value="{$row['val']}" {if $config['recent_only_old']==$row['val']}selected="selected"{/if}>{$row['show']}</option>
							{/loop}
						</select>
					</div>
					<span class="help-block">仅支持【③文本/多选】的下拉菜单，用于附近团，优先显示团长为老生等</span>
				</div>
			</div>
			{/if}
		</div>
	</div>
	{/if}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">我的数据</div>
		<div class="panel-body" style="">

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">类目</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					{if $config['isicon']==3 || $system['is_mystery_boxes']>0}
					<label class="radio-inline">
						<input name="my_info_friend" value="1" {if $config['my_info_friend']==1} checked="checked"{/if} type="checkbox"> 我的助力记录
					</label>
					{/if}
					<label class="radio-inline">
						<input name="my_info_record" value="1" {if $config['my_info_record']==1} checked="checked"{/if} type="checkbox"> 我的推荐成交记录
					</label>
					<label class="radio-inline">
						<input name="my_info_fans" value="1" {if $config['my_info_fans']==1} checked="checked"{/if} type="checkbox"> 我的新粉丝记录
					</label>
				</div>
			</div>
			{if $config['my_info']<=2}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">旁显数据</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="my_info_rank" value="0" {if $config['my_info_rank']==0} checked="checked"{/if} type="radio"> 显示排名
					</label>
					<label class="radio-inline">
						<input name="my_info_rank" value="1" {if $config['my_info_rank']==1} checked="checked"{/if} type="radio"> 显示分享次数
					</label>
					{if $config['my_info']==2}
					<label class="radio-inline">
						<input name="my_info_rank" value="2" {if $config['my_info_rank']==2} checked="checked"{/if} type="radio"> 不显示
					</label>
					{/if}
				</div>
			</div>
			{else}
			<input type="hidden" name="my_info_rank" value="2" />
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">显示位置</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="my_info_show" value="1" {if $config['my_info_show']==1} checked="checked"{/if} type="radio"> 顶部显示（默认）
					</label>
					<label class="radio-inline">
						<input name="my_info_show" value="2" {if $config['my_info_show']==2} checked="checked"{/if} type="radio"> 中间显示
					</label>
					<label class="radio-inline">
						<input name="my_info_show" value="3" {if $config['my_info_show']==3} checked="checked"{/if} type="radio"> 底部显示
					</label>
					<span class="help-block">顶部:头像的下方; 中间:在顶部图片组与活动内容中间; 底部:活动内容的下方;</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">显示用户群</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="my_info_user" value="0" {if $config['my_info_user']==0} checked="checked"{/if} type="radio"> 所有
					</label>
					<label class="radio-inline">
						<input name="my_info_user" value="1" {if $config['my_info_user']==1} checked="checked"{/if} type="radio"> 报名用户
					</label>
					<label class="radio-inline">
						<input name="my_info_user" value="2" {if $config['my_info_user']==2} checked="checked"{/if} type="radio"> 仅限团长
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">样式</label>
				<div class="col-sm-4 col-xs-12">
					<div class="col-sm-12 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">底色</span>
							{php echo view_form_field_color('my_info_color',empty($config['my_info_color'])?'#E44C46':$config['my_info_color']);}
						</div>
					</div>
<!--					<div class="col-sm-12 col-xs-12">-->
<!--						<div class="input-group">-->
<!--							<span class="input-group-addon">浅色</span>-->
<!--							{php echo view_form_field_color('my_info_color2',empty($config['my_info_color2'])?'#fd7d77':$config['my_info_color2']);}-->
<!--						</div>-->
<!--					</div>-->
					<div class="col-sm-12 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">标题文字</span>
							<input type="text" class="form-control"  placeholder="" name="my_info_title_txt"  value="{php echo empty($config['my_info_title_txt'])?'我的数据':$config['my_info_title_txt'];}">
						</div>
					</div>
				</div>

				<div class="col-sm-4 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">顶部背景图</span>
						{php echo view_form_field_image('my_info_bgimg',empty($config['my_info_bgimg'])?'https://css2020.yixuan.net/2020css/yx2020/images/titbg.png':$config['my_info_bgimg']);}
						<span class="help-block"><a href="https://css2020.yixuan.net/2020css/yx2020/images/coupon.psd" download>[设计标准PSD模版文件请点击下载]</a></span>
					</div>
				</div>
			</div>


			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">弹窗中的福利介绍图</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_image('my_info_img',$config['my_info_img']);}
					<span class="help-block"></span>
				</div>
			</div>


			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">汽车行业最新报名榜</label>
				<div class="col-sm-5 col-xs-12">
					<label class="radio-inline">
						<input name="car_order_list" value="0" {if $config['car_order_list']==0} checked="checked"{/if} type="radio"> 不开启
					</label>
					<label class="radio-inline">
						<input name="car_order_list" value="1" {if $config['car_order_list']!=0} checked="checked"{/if} type="radio"> 开启
					</label>
					<span class="help-block">车牌请用【②文本/选项】收集；</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">最新订单记录前20个</label>
				<div class="col-sm-4 col-xs-12">
					<label class="radio-inline">
						<input name="new_order_show" value="0" {if $config['new_order_show']==0} checked="checked"{/if} type="radio"> 未开启
					</label>
					<label class="radio-inline">
						<input name="new_order_show" value="1" {if $config['new_order_show']==1} checked="checked"{/if} type="radio"> 顶部显示
					</label>
					<label class="radio-inline">
						<input name="new_order_show" value="2" {if $config['new_order_show']==2} checked="checked"{/if} type="radio"> 中间显示
					</label>
					<label class="radio-inline">
						<input name="new_order_show" value="3" {if $config['new_order_show']==3} checked="checked"{/if} type="radio"> 底部显示
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label"></label>
				<div class="col-sm-3 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">标题文字</span>
						<input type="text" class="form-control"  placeholder="" name="new_order_title_txt"  value="{php echo empty($config['new_order_title_txt'])?'最新订单记录':$config['new_order_title_txt'];}">
					</div>
				</div>
				<div class="col-sm-6 col-xs-12">
					<div class="input-group"><span class="input-group-addon">背景色</span>
						{php echo view_form_field_color('new_order_bgcolor',empty($config['new_order_bgcolor'])?'#FFEBB9':$config['new_order_bgcolor']);}
						<span class="input-group-addon">文字</span>
						{php echo view_form_field_color('new_order_txtcolor',empty($config['new_order_txtcolor'])?'#e06666':$config['new_order_txtcolor']);}
					</div>
				</div>
			</div>
		</div>
	</div>
	{if $system['is_mystery_boxes_feichi'] != 1}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">排行榜</div>
		<div class="panel-body" style="">

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">按排序类目</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="rank_order" value="0" {if $config['rank_order']==0} checked="checked"{/if} type="radio"> 未开启
					</label>
					<label class="radio-inline">
						<input name="rank_order" value="1" {if $config['rank_order']==1} checked="checked"{/if} type="radio"> 团长排名
					</label>
					{if $config['isicon']==3 || $system['is_mystery_boxes']>0}
					<label class="radio-inline">
						<input name="rank_order" value="2" {if $config['rank_order']==2} checked="checked"{/if} type="radio"> 助力排名
					</label>
					{/if}
					<label class="radio-inline">
						<input name="rank_order" value="3" {if $config['rank_order']==3} checked="checked"{/if} type="radio"> 粉丝推荐成交量
					</label>
					<label class="radio-inline">
						<input name="rank_order" value="4" {if $config['rank_order']==4} checked="checked"{/if} type="radio"> 粉丝推荐新粉量
					</label>
					<span class="help-block"></span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜显示位置</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="rank_show" value="1" {if $config['rank_show']==1} checked="checked"{/if} type="radio"> 顶部显示
					</label>
					<label class="radio-inline">
						<input name="rank_show" value="2" {if $config['rank_show']==2} checked="checked"{/if} type="radio"> 中间显示
					</label>
					<label class="radio-inline">
						<input name="rank_show" value="0" {if $config['rank_show']==0} checked="checked"{/if} type="radio"> 底部显示（默认）
					</label>
					<label class="radio-inline">
						<input name="rank_show" value="3" {if $config['rank_show']==3} checked="checked"{/if} type="radio"> 独立页面
					</label>
					<span class="help-block">顶部:头像的下方; 中间:在顶部图片组与活动内容中间; 底部:活动内容的下方;独立页:面只能仅限报名用户才可以看；</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">显示用户群</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="rank_user_type" value="0" {if $config['rank_user_type']==0} checked="checked"{/if} type="radio" {if $config['rank_show']==3}disable{/if}> 所有
					</label>
					<label class="radio-inline">
						<input name="rank_user_type" value="1" {if $config['rank_user_type']==1} checked="checked"{/if} type="radio" {if $config['rank_show']==3}disable{/if}> 报名用户
					</label>
					<label class="radio-inline">
						<input name="rank_user_type" value="2" {if $config['rank_user_type']==2 || $config['rank_show']==3} checked="checked"{/if} type="radio" {if $config['rank_show']==3}disable{/if}> 仅限团长
					</label>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜中包含</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="isfansrankshowworker" value="0" {if $config['isfansrankshowworker']==0} checked="checked"{/if} type="radio"> 包含内部员工
					</label>
					<label class="radio-inline">
						<input name="isfansrankshowworker" value="1" {if $config['isfansrankshowworker']==1} checked="checked"{/if} type="radio"> 不包含
					</label>
					<span class="help-block">也可以在粉丝->虚拟数->修改某一个粉丝的昵称、推荐数</span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜样式</label>
				<div class="col-sm-4 col-xs-12">
					<div class="col-sm-12 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">底色</span>
							{php echo view_form_field_color('tuanrank_color',empty($config['tuanrank_color'])?'#fd4649':$config['tuanrank_color']);}
						</div>
					</div>
					<div class="col-sm-12 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">浅色</span>
							{php echo view_form_field_color('tuanrank_color2',empty($config['tuanrank_color2'])?'#fd7d77':$config['tuanrank_color2']);}
						</div>
					</div>
				</div>

				{if $config['rank_show']==3}
				<div class="col-sm-4 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">标题文字</span>
						<input type="text" class="form-control"  placeholder="" name="rank_title_txt"  value="{$config['rank_title_txt']}">
					</div>
					<div class="input-group">
						<span class="input-group-addon">底部按扭文字</span>
						<input type="text" class="form-control"  placeholder="" name="rank_view_txt"  value="{$config['rank_view_txt']}">
					</div>
				</div>
				{else}
				<div class="col-sm-4 col-xs-12">
					{php echo view_form_field_image('rank_top_img',$config['rank_top_img']);}
				</div>
				{/if}
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜显示</label>
				<div class="col-sm-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">前</span>
						<input type="text" class="form-control"  placeholder="" name="rank_limit"  value="{$config['rank_limit']}">
						<span class="input-group-addon">名，为0不限制；</span>
						{if $config['rank_order']==1}
						<span class="input-group-addon">团人数</span>
						<select class="form-control" name="rank_show_tuan" style="min-width: 80px;">
							<option value="0" {if $config['rank_show_tuan'] == 0 }selected="selected"{/if}>显示团人数</option>
							<option value="1" {if $config['rank_show_tuan'] == 1 }selected="selected"{/if}>不显示团人数</option>
						</select>
						<span class="input-group-addon">排序方式</span>
						<select class="form-control" name="rank_sort_tuan" style="min-width: 80px;">
							<option value="0" {if $config['rank_sort_tuan'] == 0 }selected="selected"{/if}>按最后一个团员报名时间</option>
							<option value="1" {if $config['rank_sort_tuan'] == 1 }selected="selected"{/if}>按团长报名时间</option>
						</select>
						{/if}
					</div>
				</div>
			</div>


			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜顶部图片组</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_multi_image('rank_top_imgs',$config['rank_top_imgs']);}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜底部图片组</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_multi_image('rank_bottom_imgs',$config['rank_bottom_imgs']);}
				</div>
			</div>
			{if $config['rank_show']==3}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜提示</label>
				<div class="col-sm-6 col-xs-12">

					<div class="input-group">
						<span class="input-group-addon">提示</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_boxs_rank_tips"  value="{if empty($config['mystery_boxs_rank_tips'])}共有#total位团长参与排行{else}{$config['mystery_boxs_rank_tips']}{/if}">
						<span class="input-group-addon">高度</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_boxs_rank_hight"  value="{if empty($config['mystery_boxs_rank_hight'])}775{else}{$config['mystery_boxs_rank_hight']}{/if}">
					</div>
					<span class="help-block">以下按扭文字通配符: #total代表团长数</span>
				</div>
			</div>
			{/if}
		</div>
	</div>
	{if $config['rank_order']!=0 && $config['rank_show']==3}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">排行榜②</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">按排序类目</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="rank_order_new" value="0" {if $config['rank_order_new']==0} checked="checked"{/if} type="radio"> 未开启
					</label>
					<label class="radio-inline">
						<input name="rank_order_new" value="1" {if $config['rank_order_new']==1} checked="checked"{/if} type="radio"> 团长排名
					</label>
					{if $config['isicon']==3 || $system['is_mystery_boxes']>0}
					<label class="radio-inline">
						<input name="rank_order_new" value="2" {if $config['rank_order_new']==2} checked="checked"{/if} type="radio"> 助力排名
					</label>
					{/if}
					<label class="radio-inline">
						<input name="rank_order_new" value="3" {if $config['rank_order_new']==3} checked="checked"{/if} type="radio"> 粉丝推荐成交量
					</label>
					<label class="radio-inline">
						<input name="rank_order_new" value="4" {if $config['rank_order_new']==4} checked="checked"{/if} type="radio"> 粉丝推荐新粉量
					</label>
					<span class="help-block"></span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜显示位置</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="rank_show_new" value="1" {if $config['rank_show_new']==1} checked="checked"{/if} type="radio"> 顶部显示
					</label>
					<label class="radio-inline">
						<input name="rank_show_new" value="2" {if $config['rank_show_new']==2} checked="checked"{/if} type="radio"> 中间显示
					</label>
					<label class="radio-inline">
						<input name="rank_show_new" value="0" {if $config['rank_show_new']==0} checked="checked"{/if} type="radio"> 底部显示（默认）
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">显示用户群</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="rank_user_type_new" value="0" {if $config['rank_user_type_new']==0} checked="checked"{/if} type="radio" {if $config['rank_show_new']==3}disable{/if}> 所有
					</label>
					<label class="radio-inline">
						<input name="rank_user_type_new" value="1" {if $config['rank_user_type_new']==1} checked="checked"{/if} type="radio" {if $config['rank_show_new']==3}disable{/if}> 报名用户
					</label>
					<label class="radio-inline">
						<input name="rank_user_type_new" value="2" {if $config['rank_user_type_new']==2 || $config['rank_show_new']==3} checked="checked"{/if} type="radio" {if $config['rank_show_new']==3}disable{/if}> 仅限团长
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜样式</label>
				<div class="col-sm-4 col-xs-12">
					<div class="col-sm-12 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">底色</span>
							{php echo view_form_field_color('tuanrank_color_new',empty($config['tuanrank_color_new'])?'#fd4649':$config['tuanrank_color_new']);}
						</div>
					</div>
					<div class="col-sm-12 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">浅色</span>
							{php echo view_form_field_color('tuanrank_color_new2',empty($config['tuanrank_color_new2'])?'#fd7d77':$config['tuanrank_color_new2']);}
						</div>
					</div>
				</div>
				<div class="col-sm-4 col-xs-12">
					{php echo view_form_field_image('rank_top_img_new',$config['rank_top_img_new']);}
				</div>
			</div>
		</div>
	</div>
	{/if}
	{else}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">排行榜：飞驰盲盒请到盲盒设置中配置</div>
		<div class="panel-body" style="">
		</div>
	</div>
	{/if}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">界面样式</div>
		<div class="panel-body" style="">


			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">开启弹幕</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="isdanmu" value="0" {if $config['isdanmu']==0 } checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="isdanmu" value="1" {if $config['isdanmu']==1 && $config['show_fromuid_info']==0} checked="checked"{/if} type="radio"> 新样式
					</label>
					<label class="radio-inline">
						<input name="isdanmu" value="2" {if $config['isdanmu']==2} checked="checked"{/if} type="radio"> 老样式
					</label>

					<label class="radio-inline">
						<input name="isdanmu" value="3" {if $config['isdanmu']==1 && $config['show_fromuid_info']==1} checked="checked"{/if} type="radio"> 显示分享人
					</label>

					<span class="help-block">点亮、开团、参团、奖励都会显示</span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">启用弹幕按钮开关</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="open_danmu_btn" value="0" {if $config['open_danmu_btn']==0} checked="checked"{/if} type="radio"> 禁用
					</label>
					<label class="radio-inline">
						<input name="open_danmu_btn" value="1" {if $config['open_danmu_btn']==1} checked="checked"{/if} type="radio"> 启用
					</label>
					<span class="help-block">启用弹幕开关后，在首页可以通过按钮开启关闭弹幕</span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">弹幕内容</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">点亮图标</span>
						<select class="form-control" name="danmu01">
							<option value="0" {if $config['danmu01']==0}selected="selected"{/if}>显示</option>
							<option value="1" {if $config['danmu01']==1}selected="selected"{/if} >不显示</option>
						</select>
						<span class="input-group-addon">分销红包</span>
						<select class="form-control" name="danmu02">
							<option value="0" {if $config['danmu02']==0}selected="selected"{/if}>显示</option>
							<option value="1" {if $config['danmu02']==1}selected="selected"{/if} >不显示</option>
						</select>
						<span class="input-group-addon">员工提成</span>
						<select class="form-control" name="danmu03">
							<option value="0" {if $config['danmu03']==0}selected="selected"{/if}>显示</option>
							<option value="1" {if $config['danmu03']==1}selected="selected"{/if} >不显示</option>
						</select>
						{if $system['selling_agent']==1}
						<span class="input-group-addon">代理提成</span>
						<select class="form-control" name="danmu05">
							<option value="0" {if $config['danmu05']==0}selected="selected"{/if}>显示</option>
							<option value="1" {if $config['danmu05']==1}selected="selected"{/if} >不显示</option>
						</select>
						{/if}
						<span class="input-group-addon">裂变红包</span>
						<select class="form-control" name="danmu04">
							<option value="0" {if $config['danmu04']==0}selected="selected"{/if}>显示</option>
							<option value="1" {if $config['danmu04']==1}selected="selected"{/if} >不显示</option>
						</select>
						{if ($config['tuan_tips'])}
						<span class="input-group-addon">阶梯团礼品</span>
						<select class="form-control" name="danmu06">
							<option value="0" {if $config['danmu06']==0}selected="selected"{/if}>不显示</option>
							<option value="1" {if $config['danmu06']==1}selected="selected"{/if} >显示</option>
						</select>
						{/if}
					</div>
				</div>
			</div>
<!--			阶梯团模式-->
			{if ($config['tuan_tips'])}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">阶梯团礼品模式</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="step_tuan_gift_mode" value="0" {if $config['step_tuan_gift_mode']!=1} checked="checked"{/if} type="radio"> 最大团人数礼品
					</label>
					<label class="radio-inline">
						<input name="step_tuan_gift_mode" value="1" {if $config['step_tuan_gift_mode']==1} checked="checked"{/if} type="radio"> 叠加团礼品
					</label>
				</div>
			</div>
			{/if}
			{if $_G['companyname'] =='飞驰软件'}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">底部按扭样式</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="fcfootmenu" value="0" {if $config['fcfootmenu']==0} checked="checked"{/if} type="radio"> 老样式
					</label>
					<label class="radio-inline">
						<input name="fcfootmenu" value="1" {if $config['fcfootmenu']==1} checked="checked"{/if} type="radio"> 新样式
					</label>
				</div>
			</div>
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">Banner视频</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="banner_video_style" value="0" {if $config['banner_video_style']!=1} checked="checked"{/if} type="radio"> Banner中显示
					</label>
					<label class="radio-inline">
						<input name="banner_video_style" value="1" {if $config['banner_video_style']==1} checked="checked"{/if} type="radio"> 首图下方显示
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">倒计时</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="col-sm-1 control-label">样式</label>
					<div class="col-sm-3">
						<select class="form-control" name="istime">
							<option value="0" {if $config['istime']==0}selected="selected"{/if}>默认</option>
							<option value="1" {if $config['istime']==1}selected="selected"{/if} >样式1黑色-H5</option>
							<option value="2" {if $config['istime']==2}selected="selected"{/if} >样式2-小程序</option>
							<option value="3" {if $config['istime']==3}selected="selected"{/if} >样式3-小程序</option>
							<option value="9" {if $config['istime']==9}selected="selected"{/if} >倒计时不显示 参于人数显示</option>
							<option value="10" {if $config['istime']==10}selected="selected"{/if} >不显示</option>
						</select>
					</div>
					<label class="col-sm-1 control-label">背景色</label>
					<div class="col-sm-7 col-xs-7">
						{php echo view_form_field_color('time_bgcolor',$config['time_bgcolor']);}
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">报名数量</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="is_show_baoming" value="0" {if empty($config['is_show_baoming'])} checked="checked"{/if} type="radio"> 显示
					</label>
					<label class="radio-inline">
						<input name="is_show_baoming" value="1" {if $config['is_show_baoming']==1} checked="checked"{/if} type="radio"> 不显示
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">活动浏览量</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="is_show_liulan" value="0" {if empty($config['is_show_liulan'])} checked="checked"{/if} type="radio"> 显示
					</label>
					<label class="radio-inline">
						<input name="is_show_liulan" value="1" {if $config['is_show_liulan']==1} checked="checked"{/if} type="radio"> 不显示
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">报名头像</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					{if $system['ruanjian']==1}
					<label class="radio-inline">
						<input name="iswttouxiang" value="0" {if $config['iswttouxiang']==0} checked="checked"{/if} type="radio"> 滚动模式
					</label>
					<label class="radio-inline">
						<input name="iswttouxiang" value="1" {if $config['iswttouxiang']==1} checked="checked"{/if} type="radio"> 普通模式
					</label>
					{/if}
					<label class="radio-inline">
						<input name="iswttouxiang" value="9" {if $config['iswttouxiang']==9 || !isset($config['iswttouxiang'])} checked="checked"{/if} type="radio"> 本地客户显示
					</label>
					<label class="radio-inline">
						<input name="iswttouxiang" value="10" {if $config['iswttouxiang']==10 || $config['iswttouxiang']==0} checked="checked"{/if} type="radio"> 不显示
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">关闭底部按扭</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="menuclose" value="0" {if $config['menuclose']==0} checked="checked"{/if} type="radio"> 正常
					</label>
					<label class="radio-inline">
						<input name="menuclose" value="1" {if $config['menuclose']==1} checked="checked"{/if} type="radio"> 关闭底部按扭，只显客服信息
					</label>
					<label class="radio-inline">
						<input name="menuclose" value="2" {if $config['menuclose']==2} checked="checked"{/if} type="radio"> 关闭底部按扭，什么也不显示
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">弹屏广告模式</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="ad_style" value="0" {if $config['ad_style']==0} checked="checked"{/if} type="radio"> 老模式
					</label>
					<label class="radio-inline">
						<input name="ad_style" value="1" {if $config['ad_style']==1} checked="checked"{/if} type="radio"> 新模式
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">投诉浮标</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="iscomplaint" value="0" {if $config['iscomplaint']==0} checked="checked"{/if} type="radio"> 支付凭证页显示
					</label>
					<label class="radio-inline">
						<input name="iscomplaint" value="1" {if $config['iscomplaint']==1} checked="checked"{/if} type="radio"> 首页显示
					</label>
					<label class="radio-inline">
						<input name="iscomplaint" value="2" {if $config['iscomplaint']==2} checked="checked"{/if} type="radio"> 支付凭证页+首页显示
					</label>
					<span class="help-block">投诉入口：收集客户投诉信息，可有效减少客诉的出现</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">活动结束</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="isshow_end_footermenu" value="0" {if $config['isshow_end_footermenu']==0} checked="checked"{/if} type="radio"> 显示结束
					</label>
					<label class="radio-inline">
						<input name="isshow_end_footermenu" value="1" {if $config['isshow_end_footermenu']==1} checked="checked"{/if} type="radio"> 正常显示报名时再提示结束
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">隐藏客户姓名</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="isshowname" value="0" {if $config['isshowname']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="isshowname" value="1" {if $config['isshowname']==1} checked="checked"{/if} type="radio"> 开启
					</label>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">交易凭证</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="showpayresult" value="0" {if $config['showpayresult']==0} checked="checked"{/if} type="radio"> 显示
					</label>
					<label class="radio-inline">
						<input name="showpayresult" value="1" {if $config['showpayresult']==1} checked="checked"{/if} type="radio"> 不显示
					</label>
					<span class="help-block" >客户付完款后，出现一个凭证，会有店内信息显示</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">支付后跳转</label>
				<div class="col-sm-8 col-xs-12">
						<div class="input-group">
						<select class="form-control" name="paytotheme">
							<option value="0" {if $config['paytotheme'] == "0" }selected="selected"{/if}></option>
							{if count($themelist)>0 }
							{loop $themelist $row}
							{if $row['id']!=$_P['id']}
							<option value="{$row['id']}" {if $config['paytotheme'] == $row['id'] }selected="selected"{/if}>跳转到：{$row['id']} - {php echo mb_substr($row['title'],0,25,'utf-8');}</option>
							{/if}
							{/loop}
							{/if}
						</select>
						<span class="input-group-addon">自定义网址</span>
						<input type="text" class="form-control"  placeholder="" name="payedurl"  value="{$config['payedurl']}">
					</div>
					<span class="help-block">支付后的跳转URL，不设置默认跳转到交易凭证页；先判断有无跳转，再判断自定义网址</span>
				</div>
			</div>
		</div>

	</div>


	{if $_G['isSuperAdmin']}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">高级功能：仅限易宣工作人员操作</div>
		<div class="panel-body" style="">
			{if $id>0}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">其他活动的配置</label>
				<div class="col-sm-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon" id="copy_source_theme">①原活动：点击复制当前活动的配置；</span>
						<span class="input-group-addon">②目标活动：粘贴到此处</span>
						<input class="form-control" type="text" value="" class="span2" id="other_theme">
						<span class="input-group-addon" id="copy_now_theme_all">复制全部</span>
						<span class="input-group-addon" id="copy_now_theme">只复制活动图片视频</span>
					</div>
				</div>
			</div>
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">公众平台变更</label>
				<div class="col-sm-8 col-xs-12">
					<select class="form-control" name="accountid">
						{loop $accountlist $row}
						<option value="{$row['uniacid']}" {if $theme['uniacid'] == $row['uniacid'] }selected="selected"{/if}>{$row['uniacid']} _ {$row['name']}</option>
						{/loop}
					</select>
					<span class="help-block">活动启动后,严禁更改 <a href="#"onclick="drop_confirm('确定要重置吗?','{php echo createWebUrl($do,array('op'=>'qrnew','id'=>$theme['id']));}');"
					title="删除"> 重新生成链接二维码</a></span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">链接白名单</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="whitelist"  value="{$theme['whitelist']}">
					<span class="help-block">将默认的系统黑名单中的转为白名单。</span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">链接限制地区访问</label>
				<div class="col-sm-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">城市：</span>
						<input class="form-control" type="text" value="{$config['viewcity']}" class="span2" name="viewcity">
						<span class="input-group-addon">白名单：</span>
						<input class="form-control" type="text" value="{$config['viewcitywhitelist']}" class="span2" name="viewcitywhitelist">
					</div>
					<span class="help-block" >为空则不限制地区。例如：山东,青岛等。可以支持省市县区；多个地区用“,”分割，根据IP来判断，建议精确到省</span>
					<span class="help-block">白名单：用“|”分格每一个关键字，输入昵称中的部分关键字</span>
				</div>
			</div>
			{if $system['ruanjian']==2 || $system['ruanjian']==0 || $system['ruanjian']==4 || $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}
			{if $config['maxcountall']>1 || $config['maxcountall2']>1 || $config['maxcountall3']>1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">组团成功</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="colonel_auto_refund" value="0" {if $config['colonel_auto_refund']==0} checked="checked"{/if} type="radio"> 正常模式
					</label>
					<label class="radio-inline">
						<input name="colonel_auto_refund" value="1" {if $config['colonel_auto_refund']==1} checked="checked"{/if} type="radio"> 团满团长免单，团长自动全额退款
					</label>
					<label class="radio-inline">
						<input name="colonel_auto_refund" value="2" {if $config['colonel_auto_refund']==2} checked="checked"{/if} type="radio"> 团满团长免单，团长全额退款，定单管理手动退；
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">组团失败</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="isautorefund" value="0" {if $theme['isautorefund']==0} checked="checked"{/if} type="radio"> 不退款
					</label>
					<label class="radio-inline">
						<input name="isautorefund" value="1" {if $theme['isautorefund']==1} checked="checked"{/if} type="radio"> 开启自动退款
					</label>
				</div>
			</div>
			{if $theme['isautorefund']==1}
			<div class="form-group" >
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">组团失败(整数小时)</label>
				<div class="col-md-5">
					<div class="input-group">
						<span class="input-group-addon">限时</span>
						<input type="text" class="form-control" value="{$config['groupneedtime']}" name="groupneedtime">
						<span class="input-group-addon">小时，未成团自动退款</span>
					</div>
				</div>
			</div>
			{/if}
			<div class="form-group" >
				<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">自动成团(整数小时)</label>
				<div class="col-md-5">
					<div class="input-group">
						<span class="input-group-addon"> 自动成团剩余</span>
						<input type="text" class="form-control" value="{$config['groupautotime']}" name="groupautotime" placeholder="默认为不自动">
						<span class="input-group-addon">小时，自动虚拟成团</span>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">最大开团数量</label>
				<div class="col-sm-8 col-xs-12">
					<input class="form-control" type="text" value="{$config['groupsum']}" class="span2" name="groupsum">
					<span class="help-block" >如：达到最大开团数，则无法开新团</span>
				</div>
			</div>
			{/if}
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">朋友圈被屏蔽</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="iswxshare" value="0" {if $config['iswxshare']==0} checked="checked"{/if} type="radio"> 未屏蔽
					</label>
					<label class="radio-inline">
						<input name="iswxshare" value="1" {if $config['iswxshare']==1} checked="checked"{/if} type="radio">
						已屏蔽
					</label>
				</div>
			</div>
			{if !($config['maxcountall']>1 || $config['maxcountall2']>1)}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">是否显示团长与团员统计</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="showdanmai" value="0" {if $config['showdanmai']==0} checked="checked"{/if} type="radio"> 不显示
					</label>
					<label class="radio-inline">
						<input name="showdanmai" value="1" {if $config['showdanmai']==1} checked="checked"{/if} type="radio"> 显示
					</label>
				</div>
			</div>
			{/if}
<!--			<div class="form-group">-->
<!--				<label class="col-sm-2 col-xs-12 control-label">无限次购买</label>-->
<!--				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">-->
<!--					<label class="radio-inline">-->
<!--						<input name="wuxian2" value="0" {if $config['wuxian']==0} checked="checked"{/if} type="radio"> 关闭-->
<!--					</label>-->
<!--					<label class="radio-inline">-->
<!--						<input name="wuxian2" value="1" {if $config['wuxian']==1} checked="checked"{/if} type="radio"> 开启-->
<!--					</label>-->
<!--				</div>-->
<!--			</div>-->
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">无限次购买</label>
				<div class="col-sm-6 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">同一个用户，最多可购买</span>
						<input type="text" class="form-control"  placeholder="" name="buy_limit"  value="{$config['buy_limit']}">
						<span class="input-group-addon">次，小程序与H5互通后此功通禁用</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">H5访问方式</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="weixinh5" value="0" {if $config['weixinh5']==0} checked="checked"{/if} type="radio"> 仅限微信
					</label>
					<label class="radio-inline">
						<input name="weixinh5" value="2" {if $config['weixinh5']==2} checked="checked"{/if} type="radio"> 不限制
					</label>
				</div>
			</div>
		</div>
	</div>

	{/if}
	{php if ($theme['softsn']=='易宣软件测试专用') $theme['softqubanquan']=$theme['softoem']=1;}
	{if $_G['isSuperAdmin'] && ($theme['softqubanquan']==1 || $theme['softoem']==1 || $system['softstyle']==109)}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">版权信息</div>
		<div class="panel-body">
			{if $theme['softqubanquan']==1 || $theme['softoem']==1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">版权信息</label>
				<div class="col-sm-8 col-xs-12">
					<label class="radio-inline">
						<input type="radio" name="yixuanbanquan" id="inlineRadio1" value="0" {if $theme['yixuanbanquan'] != '1'}checked="checked"{/if}> 显示
					</label>
					<label class="radio-inline">
						<input type="radio" name="yixuanbanquan" id="inlineRadio2" value="1" {if $theme['yixuanbanquan'] =='1'}checked="checked"{/if}> 不显示
					</label>
				</div>
			</div>
			{/if}
			{if $system['softstyle']==109}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">版权广告图</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_image('edu_btm_img',$config['edu_btm_img']);}
					<span class="help-block">如：http://img2020.yixuansoft.cn/images/2/2021/12/w4CwoRtUR9r8094iVD9R89rRU2qu2q.jpg/99.jpg</span>
				</div>
			</div>
			{/if}
			{if $theme['softoem']==1}
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">链接底部提示信息</label>
				<div class="col-sm-9 col-xs-12">
					<input type="text" name="USERJISHU" value="{$theme['USERJISHU']}" class="form-control">
					<span class="help-block">例如：技术支持：【{$_G['companyname']}】{$system['s']['yixuanphone']}</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">链接URL</label>
				<div class="col-sm-9 col-xs-12">
					<input type="text" name="USERURL" value="{$theme['USERURL']}" class="form-control">
					<span class="help-block">例如：tel:{$system['s']['yixuanphone']}</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">公司简称</label>
				<div class="col-sm-9 col-xs-12">
					<input type="text" name="USERCOMPANYNAME" value="{$theme['USERCOMPANYNAME']}" class="form-control">
					<span class="help-block">例如：{$_G['companyname']}</span>
				</div>
			</div>
			<div class="form-group">
				<span class="help-block">常用配置：技术支持: <img src='https://img2019.yixuan.net/images/2/2019/05/OVvaM595adVA7A9j975Zj0R0ztvvaj.jpg/99.jpg' style="width: 16px" >江苏瑞博企划有限公司（代码复制下方）13851022212</span>
				<span class="col-sm-12 col-xs-12 help-block"><xmp>技术支持: <img src='https://img2019.yixuan.net/images/2/2019/05/OVvaM595adVA7A9j975Zj0R0ztvvaj.jpg/99.jpg' style="width: 16px" >江苏瑞博企划有限公司</xmp></span>
			</div>
			{/if}
		</div>
	</div>
	{/if}

</div>
{if $_G['isSuperAdmin']}
<script>
	document.getElementById('copy_source_theme').addEventListener('click', async () => {
		try {
			await navigator.clipboard.writeText('{$now_theme}');
			alert('复制成功');
		} catch (err) {
			alert('出错了');
		}
	});
	document.getElementById('copy_now_theme_all').addEventListener('click', async () => {
		try {
			var other_theme = document.getElementById('other_theme').value;
			if (!other_theme.includes("softname")) {
				alert('配置错误，请正确操作');
			}else{
				if (confirm('确定要全部复制吗？')) {
					copy_now_theme(other_theme,1);
				}
			}
		} catch (err) {
			alert('出错了');
		}
	});
	document.getElementById('copy_now_theme').addEventListener('click', async () => {
		try {
			var other_theme = document.getElementById('other_theme').value;
			if (!other_theme.includes("softname")) {
				alert('配置错误，请正确操作');
			}else{
				if (confirm('确定要复制图片到此活动吗？')) {
					copy_now_theme(other_theme,0);
				}
			}
		} catch (err) {
			alert('出错了');
		}
	});
	function copy_now_theme(other_theme,isall) {
		$.ajax({
			url: '{php echo createWebUrl('theme', array('op'=>'copy_now_theme','themeid'=>$id));}', // 替换为你想要请求的网址
			type: 'POST', // 请求类型，可以是GET、POST等
			dataType: 'json', // 预期服务器返回的数据类型
			data: {other_theme: other_theme,isall:isall},
			success: function (data, textStatus, jqXHR) {
				// 请求成功时调用此函数
				if (data.message.error == 1) {
					alert(data.message.msg);
				} else {
					alert(data.message.msg);
					window.location.href = data.message.url;
				}
			},
			error: function (jqXHR, textStatus, errorThrown) {
				// 请求失败时调用此函数
				console.error('AJAX error: ' + textStatus + ' - ' + errorThrown);
			}
		});
	}
</script>
{/if}